package cn.rongdao.jrkabao.model.loan;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.List;

import cn.rongdao.jrkabao.bean.loan.MultiPushBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jiangyongxing on 2017/8/21.
 * 描述：
 */

public class MultiPushModel extends BaseSuDaiModel {

    public static MultiPushModel getInstance() {
        return getPresent(MultiPushModel.class);
    }

    public void execute(String cateId, String classify, Observer<List<MultiPushBean>> observer) {
        addParamStrings("cate_id", cateId);
        addParamStrings("classify", classify);
        Observable<List<MultiPushBean>> observable = mServletApi.getMultiPushListData(mParams).map(new HttpFunction<List<MultiPushBean>>());
         toSubscribe(observable, observer);
    }
}
